<!--{if $TS_SITE[base][isgzip]==1}-->{php ob_start('ob_gzip');}<!--{/if}-->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="{$TS_SOFT[info][email]}" />
<meta name="Copyright" content="{$TS_SOFT[info][name]}" />
<title><!--{if $ac=='index'}-->{$TS_SITE[base][site_title]} - {$title}<!--{else}-->{$title}_{$TS_APP[options][appname]}<!--{/if}-->
</title>
<!--{if  $app=='home' && $ac=='index'}-->
<meta name="keywords" content="{$TS_SITE[base][site_key]}" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
<!--{/if}-->
<link rel="shortcut icon" href="{SITE_URL}public/images/favicon.png" />
<style>
<!--{if is_file('theme/'.$site_theme.'/base.css')}-->
@import url({SITE_URL}theme/{$site_theme}/base.css);
<!--{/if}-->
<!--{if is_file('app/'.$app.'/skins/'.$skin.'/style.css')}-->
@import url({SITE_URL}app/{$app}/skins/{$skin}/style.css);
<!--{/if}-->
</style>
<script>var siteUrl = '{SITE_URL}';</script>
<script src="{SITE_URL}public/js/jquery.js" type="text/javascript"></script>
<!--{if is_file('app/'.$app.'/js/extend.func.js')}-->
<script src="{SITE_URL}app/{$app}/js/extend.func.js" type="text/javascript"></script>
<!--{/if}-->
{php doAction('pub_header_top')}
</head>
<body>
<!--header-->
<div class="header">
<div class="hc">
<div class="left"><a href="{SITE_URL}"><img src="{SITE_URL}theme/{$site_theme}/logo.gif" alt="{$TS_SITE[base][site_title]}" /></a></div>
<div class="nav">
<ul>
<li><a href="{SITE_URL}">首页</a></li>
{php doAction('pub_header_nav')}
<li><a href="{SITE_URL}{tsUrl('group','explore')}">随便看看</a></li>
</ul>
</div>

<div class="right">
<!--{if $TS_USER[user] == ''}-->
<a href="{SITE_URL}{tsUrl('user','register')}"><img class="fimg" src="{SITE_URL}public/images/user_normal.jpg" width="24" align="absmiddle" /></a> 欢迎您
<br />
<a href="{SITE_URL}{tsUrl('user','login')}">登录</a> | <a href="{SITE_URL}{tsUrl('user','register')}">注册</a>
<!--{else}-->
<a href="{SITE_URL}{tsUrl('user','space',array('id'=>$TS_USER[user][userid]))}">
<img class="fimg" src="<!--{if $TS_USER[user][face]==""}-->{SITE_URL}public/images/user_normal.jpg<!--{else}-->{SITE_URL}{php echo tsXimg($TS_USER[user][face],'user','24','24',$TS_USER[user][path],'1')}<!--{/if}-->" width="24" align="absmiddle" /> 
</a>
<a href="{SITE_URL}{tsUrl('user','space',array('id'=>$TS_USER[user][userid]))}">{$TS_USER[user][username]}</a>   |  <span id="newmsg"><a href="{SITE_URL}{tsUrl('message','my')}">消息盒子</a></span> 
<br />
<a href="{SITE_URL}{tsUrl('user','set',array(ts=>base))}">设置</a>

<!--{if $TS_SITE['base']['isinvite']=='1'}-->
 | <a href="{SITE_URL}{tsUrl('user','invite')}">邀请码</a>  
<!--{/if}-->
 
 | <a href="{SITE_URL}{tsUrl('user','login',array(ts=>out))}">退出</a>
<!--{/if}-->

| <a href="{SITE_URL}{tsUrl('home','theme')}">换肤</a>

{if $TS_USER['user']['isadmin']=='1'}
|  <a target="_blank" href="{SITE_URL}index.php?app=system">系统管理</a>
{/if}

</div>

</div>
</div>

<!--APP NAV-->

<!--{if is_array($TS_SITE[appnav]) && $TS_SITE[appnav][$app] !=''}-->
<div class="appnav">
<ul>
<!--{loop $TS_SITE[appnav] $key $item}-->
<li <!--{if $app==$key}-->class="select"<!--{/if}-->><a href="{SITE_URL}{tsUrl($key)}">{$item}</a></li>
<!--{/loop}-->
<li style="float:right;"><a target="_blank" href="http://me.alipay.com/thinksaas">捐助ThinkSAAS开发</a></li>
</ul>
</div>
<!--{/if}-->